uid
-
make sure
.uidfiles are committed to version control . In other words,*.uidshould not be added to.gitignore.-
If you forget to commit
.uidfiles to version control, the project will still work locally. However, as soon as you clone the project on another device, the UID references will break. Godot will still be able to resolve them if the paths havenβt changed (since paths are also saved as a fallback), but a warning will be printed for every resource where a path fallback had to be used to infer the reference. This behavior should not be relied upon intentionally, as it is possible for two resources to be swapped around without either of their paths changing. This can occur if the path of one of the resources was changed to be identical to another resource that was relocated elsewhere.
-
Project Settings
-
Access and change Project Settings via Script
-
@onready var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")